package src;

import com.cisco.redisevaluation.EvaluationFactory;
public class RedisEvaluationTest {
	public static void main(String[] arg){
		EvaluationFactory redisInstance  =EvaluationFactory.getInstance();//get connected to default host
		redisInstance.putCache("TestKey", "<Data to be cached>", 3600);//cache the value to be evaluated and set key expiry 
		String cachedDate = redisInstance.getCache("TestKey");//retrive the key from cache to check the performance, time will be printed on sysout
		System.out.println("Retrived Data: "+cachedDate);
		redisInstance.disconnect();//disconnecting as its a test code, never disconnect for practical cases
	}
}
